

<%@ page import="mms.Complaints" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'complaints.label', default: 'Complaints')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
        <g:javascript src="complaints/create.js" />
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${complaintsInstance}">
            <div class="errors">
                <g:renderErrors bean="${complaintsInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="idnum"><g:message code="complaints.idnum.label" default="Idnum" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'idnum', 'errors')}">
                                    <g:textField name="idnum" value="${fieldValue(bean: complaintsInstance, field: 'idnum')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="complaintTime"><g:message code="complaints.complaintTime.label" default="Complaint Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'complaintTime', 'errors')}">
                                    <g:datePicker name="complaintTime" precision="day" value="${complaintsInstance?.complaintTime}" default="none" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="complainantName"><g:message code="complaints.complainantName.label" default="Complainant Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'complainantName', 'errors')}">
                                    <g:textField name="complainantName" value="${complaintsInstance?.complainantName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="contactTel"><g:message code="complaints.contactTel.label" default="Contact Tel" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'contactTel', 'errors')}">
                                    <g:textField name="contactTel" value="${complaintsInstance?.contactTel}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="faultType"><g:message code="complaints.faultType.label" default="Fault Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'faultType', 'errors')}">
                                    <g:textField name="faultType" value="${complaintsInstance?.faultType}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="complainantContent"><g:message code="complaints.complainantContent.label" default="Complainant Content" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'complainantContent', 'errors')}">
                                    <g:textField name="complainantContent" value="${complaintsInstance?.complainantContent}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="companyType"><g:message code="complaints.companyType.label" default="Company Type" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'companyType', 'errors')}">
                                    <g:textField name="companyType" value="${complaintsInstance?.companyType}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="companyId"><g:message code="complaints.companyId.label" default="Company Id" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'companyId', 'errors')}">
                                    <g:textField name="companyId" value="${fieldValue(bean: complaintsInstance, field: 'companyId')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="companyName"><g:message code="complaints.companyName.label" default="Company Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'companyName', 'errors')}">
                                    <g:textField name="companyName" value="${complaintsInstance?.companyName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="companyAddress"><g:message code="complaints.companyAddress.label" default="Company Address" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'companyAddress', 'errors')}">
                                    <g:textField name="companyAddress" value="${complaintsInstance?.companyAddress}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="haveDispose"><g:message code="complaints.haveDispose.label" default="Have Dispose" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'haveDispose', 'errors')}">
                                    <g:textField name="haveDispose" value="${fieldValue(bean: complaintsInstance, field: 'haveDispose')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="disposeTime"><g:message code="complaints.disposeTime.label" default="Dispose Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'disposeTime', 'errors')}">
                                    <g:datePicker name="disposeTime" precision="day" value="${complaintsInstance?.disposeTime}" default="none" noSelection="['': '']" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="disposeName"><g:message code="complaints.disposeName.label" default="Dispose Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'disposeName', 'errors')}">
                                    <g:textField name="disposeName" value="${complaintsInstance?.disposeName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="disposeContent"><g:message code="complaints.disposeContent.label" default="Dispose Content" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: complaintsInstance, field: 'disposeContent', 'errors')}">
                                    <g:textField name="disposeContent" value="${complaintsInstance?.disposeContent}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
